//控制导航栏收起还是隐藏
export const CollapsedReducer = (
  prevState = {
    isCollapsed: false,
  },
  action
) => {
  const { type } = action;
  switch (type) {
    case "chang_colling":
      let newState = { ...prevState };
      newState.isCollapsed = !newState.isCollapsed;
      return newState;
    default:
      return prevState;
  }
};
